<?php/** * 翻页相关 * @author wangtao * @version 2012.01.24 */class next {	public static function page($page = '') {		die($page);		if (empty($page))
		{
			die('error');
		}
		$sql = 'SELECT `Pid` , `Post_Title` , `Post_Link` , left( `Post_Content` , 512 ) AS `Post_Content`
		FROM `post_into`
		WHERE `Pid` <' . $page . ' ORDER BY `Pid` DESC LIMIT 20';
		$db = mysqlDB::con();
		$result = $db->query($sql);
		while (($row = $db->assoc($result)) && !($result === false))
		{
			echo '<div class="newposten">
			<h3><a href="/readOne/' . $row['Pid'] . '">' . $row['Post_Title'] . '</a></h3>
			<p>' . mb_substr(strip_tags($row['Post_Content']), 0, 140, 'utf-8') . '<span>……</span></p>
			<small>' . $row['Post_Link'] . '</small>
			</div>';
		}	}}